package com.telecomyt.jwportal.activity.conference.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.telecomyt.jwportal.R;
import com.telecomyt.jwportal.activity.conference.bean.ConferenceBottomBean;

import java.util.List;

/**
 * @author created by chengDa
 * @time 2020/9/1  14:18
 * @description
 */
public class ConferenceBottomAdapter extends BaseQuickAdapter<ConferenceBottomBean, BaseViewHolder> {
    public ConferenceBottomAdapter(int layoutResId, @Nullable List<ConferenceBottomBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ConferenceBottomBean item) {
        ImageView mImageView = helper.getView(R.id.mImageView);
        mImageView.setBackgroundResource(item.getIconPath());
        helper.setText(R.id.mTvTitle, item.getTitle());

    }
}
